package com.czk.model.combile.prictice;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/7/29 22:48
 */
public class Client {
    public static void main(String[] args) {
        // 父亲
        Person grandpa=new Grandpa("陈彬",49);
        // 儿子
        Person son1=new Son("陈彰杰",28);
        Person son2=new Son("陈彰坤",26);
        grandpa.add(son1);
        grandpa.add(son2);
        // 孙子
        Person grandson1=new GranSon("陈彦瀚",5);
        Person grandson2=new GranSon("陈子一",1);
        son1.add(grandson1);
        son1.add(grandson2);
        grandpa.print();
    }
}
